<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>5 个元素的网格布局</title>
    <style>
        .grid-container {
            display: grid;
            grid-gap: 10px;
            background-color: #2196F3;
            padding: 10px;
        }

        .grid-item {
            background-color: rgba(255, 255, 255, 0.8);
            text-align: center;
            padding: 20px;
            font-size: 30px;
        }

        .item1 {
            grid-column: 1 / span 2;
            grid-row: 1;
        }

        .item2 {
            grid-column: 3;
            grid-row: 1 / span 2;
        }

        .item5 {
            grid-column: 1 / span 3;
            grid-row: 3;
        }
    </style>
</head>

<body>

    <h1>5 个元素的网格布局</h1>

    <div class="grid-container">
        <div class="grid-item item1">1</div>
        <div class="grid-item item2">2</div>
        <div class="grid-item item3">3</div>
        <div class="grid-item item4">4</div>
        <div class="grid-item item5">5</div>
    </div>

    <p>网格容器的所有直系子元素将成为网格元素。</p>

    <p>网格元素 1, 2, 以及 5 设置跨越行或列。</p>

</body>

</html>